package API.Stream.MiddleMethod;

import java.util.Arrays;
import java.util.stream.Stream;

public class Concat {
    public static void main(String[] args) {
        String[] arr = new String[]{"a", "b", "c"};
        Stream<String> stream1 = Arrays.stream(arr);
        Stream<String> stream2 = Arrays.stream(arr);
        Stream<String> stream3 = Stream.concat(stream1, stream2);
        stream3.forEach(s -> System.out.print(s + " "));
    }
}
